const path = require('path')
const fs = require('fs')
const files = fs.readdirSync('../api/')
const childrens = []

files.forEach(v => {
    const filename = path.basename(v, '.md')
    if (filename != 'README') {
        const obj = {
            title: filename,
            path: '/api/' + filename
        }
        childrens.push(obj)
    }
})


console.log(childrens);
module.exports = childrens